/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package CoalitionCirclePackage;

/**
 * all this class does is make sure you can .equals 2 int arrays
 * @author Heather
 */
public class IntArrayWrapper
{

  int[] array;

  public IntArrayWrapper(int[] array)
  {
    this.array = array;
  }

  public boolean equals(Object compare)
  {
    if (compare instanceof IntArrayWrapper)
    {
      IntArrayWrapper other = (IntArrayWrapper) compare;
      if (array.length != other.array.length)
      {
        return false;
      }
      else
      {
        for (int i = 0; i < array.length; i++)
        {
          if (array[i] != other.array[i])
          {
            return false;
          }
        }

        return true;
      }
    }
    else
    {
      return false;
    }
  }
}
